import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

const getters = {}

const state = {
  userid: localStorage.getItem("userid")?localStorage.getItem("userid") : ''
}

const mutations = {
  changeuserid:function(state,val){
    state.userid = val
    localStorage.setItem("userid", val)
  }
}

const actions = {

}


export default new Vuex.Store({
	actions,mutations,getters,state
})
